home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / soft / development / Macromedia RoboHelp X5 / RoboHelpOffice.exe / Data1.cab / _A4D48221CB8F4273A0D1E8993CDA4E6C < prev    next >
Encoding:
Text File  |  2001-11-06  |  2.8 KB  |  97 lines

  1. <html>
  2. <head>
  3. <title>Glossary Definition</title>
  4. <!--% WH_PROJECT_METATAGS %-->
  5. <script language="javascript" src="<!--%SF_VERSION_JS%-->"></script>
  6. <script language="javascript1.2" src="<!--%SF_MESSAGE_JS%-->"></script>
  7. <script language="javascript1.2" src="<!--%SF_PROXY_JS%-->"></script>
  8. <script language="javascript1.2" src="<!--%SF_UTILS_JS%-->"></script>
  9. <script language="javascript1.2">
  10. <!--
  11. var gsBgColor="#ffffff";
  12. var gsBgImage="";
  13. var goGloFont=null;
  14.  
  15. function setBackground(sBgImage)
  16. {
  17.     gsBgImage=sBgImage;
  18. }
  19.  
  20. function setBackgroundcolor(sBgColor)
  21. {
  22.     gsBgColor=sBgColor;
  23. }
  24.  
  25. function window_Unload()
  26. {
  27.     UnRegisterListener2(this, WH_MSG_SHOWGLODEF);
  28. }
  29.  
  30. function window_OnLoad()
  31. {
  32.     if(gsBgImage&&gsBgImage.length>0)
  33.         document.body.background=gsBgImage;
  34.     if(gsBgColor&&gsBgColor.length>0)
  35.         document.body.bgColor=gsBgColor;
  36. }
  37.  
  38. function setFont(sType, sFontName, sFontSize, sFontColor, sFontStyle, sFontWeight, sFontDecoration)
  39. {
  40.     var vFont = new whFont(sFontName, sFontSize, sFontColor, sFontStyle, sFontWeight, sFontDecoration);
  41.     if (sType == "Normal")
  42.         goGloFont = vFont;
  43. }
  44.  
  45. function textToHtml_nbsp_specialcare(sText)
  46. {
  47.     if (sText == null) return null;
  48.     var sHTML= sText;
  49.     var re = new RegExp("  ","g");
  50.     sHTML=  sHTML.replace(re, "  ");
  51.     return  sHTML;
  52. }
  53.  
  54. function onSendMessage(oMsg)
  55. {
  56.     var nMsgId = oMsg.nMessageId;
  57.     if (nMsgId == WH_MSG_SHOWGLODEF)
  58.     {
  59.         document.body.innerHTML = sDefHead + textToHtml_nbsp_specialcare(oMsg.oParam.sDef) + sDefTail;
  60.         return true;
  61.     }
  62. }
  63.  
  64. function GDefWriteClassStyle()
  65. {
  66.     var sStyle="<STYLE TYPE='text/css'>\n";
  67.     if (gsBgImage)
  68.         sStyle+="body {border-top:"+gsBgColor+" 1px solid;}\n";
  69.     else
  70.         sStyle+="body {border-top:black 1px solid;}\n";
  71.     sStyle+=".definition {"+getFontStyle(goGloFont)+"margin:2;}\n";
  72.     sStyle+="</STYLE>";
  73.     document.write(sStyle);
  74. }
  75.  
  76. if (window.gbWhMsg&&window.gbWhUtil&&window.gbWhProxy&&window.gbWhVer)
  77. {
  78.     window.onload=window_OnLoad;
  79.     window.onunload = window_Unload;
  80.     goGloFont=new whFont("Verdana", "8pt", "#000000", "normal", "normal", "none");
  81.     <!--% WH_WEBSKIN_ReplaceMacros("setBackgroundcolor(\"%WH_WEBSKIN.gls.backgroundcolor%\"); "); %-->
  82.     <!--% WH_WEBSKIN_ReplaceMacros("setBackground(\"%WH_WEBSKIN.gls.background%\"); "); %-->
  83.     <!--% WH_WEBSKIN_ReplaceMacros("setFont(\"Normal\", \"%WH_WEBSKIN.gls.item.normal.font.name%\",\"%WH_WEBSKIN.gls.item.normal.font.size%\",\"%WH_WEBSKIN.gls.item.normal.font.color%\",\"%WH_WEBSKIN.gls.item.normal.font.style%\",\"%WH_WEBSKIN.gls.item.normal.font.weight%\",\"%WH_WEBSKIN.gls.item.normal.font.decoration%\");"); %-->
  84.     GDefWriteClassStyle();
  85.     RegisterListener2(this, WH_MSG_SHOWGLODEF);
  86.     var sDefHead = "<p class=\"definition\">";
  87.     var sDefTail = "</p>";
  88. }
  89. else
  90.     document.location.reload();
  91. //-->
  92. </script>
  93. </head>
  94. <body bgproperties="fixed" bgcolor="white">
  95. </body>
  96. </html>
  97.